package com.lianzhihui.romeex.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 11/30/20 6:17 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class PledgeRecordsBean {

    /**
     * pages : 1
     * pageSize : 10
     * page : 0
     * content : [{"orderType":2,"retPrice":0.6217,"addTime":1606446135109,"retBalance":"0.00001045","fee":"0.00000001","canExpire":2,"addTimeStr":"2020-11-27 11:02:15","incomeTime":1606457567618,"timeStamp":1606446135109,"rusdBalance":"0.000005","expireStatus":1,"id":"5fc06c377c5ef81f84131dde","walletAddress":"13yNMZ2RSqM2ho7MRAFFMsJdrcjZWWxTQ3","hash":"测试专用","status":2}]
     */

    public int pages;
    public int pageSize;
    public int page;
    public List<PledgeRecordBean> content;

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public List<PledgeRecordBean> getContent() {
        return content;
    }

    public void setContent(List<PledgeRecordBean> content) {
        this.content = content;
    }

    public static class PledgeRecordBean implements Serializable {
        /**
         * orderType : 2
         * retPrice : 0.6217
         * addTime : 1606446135109
         * retBalance : 0.00001045 //已修改为 totalRetBalance
         * fee : 0.00000001
         * canExpire : 2
         * addTimeStr : 2020-11-27 11:02:15
         * incomeTime : 1606457567618
         * timeStamp : 1606446135109
         * rusdBalance : 0.000005
         * expireStatus : 1
         * id : 5fc06c377c5ef81f84131dde
         * walletAddress : 13yNMZ2RSqM2ho7MRAFFMsJdrcjZWWxTQ3
         * hash : 测试专用
         * status : 2
         */

        public int orderType;
        public double retPrice;
        public long addTime;//质押时间
        public long extractTime;//提取时间
        public String totalRetBalance;
        public String retBalance;
        public String fee;
        public int canRelease;
        public String addTimeStr;
        public long incomeTime;
        public long timeStamp;
        public long expireTime;//销毁时间
        public long cancelTime;//提取 取消时间
        public String rusdBalance;
        public int expireStatus;
        public String id;
        public String walletAddress;
        public String hash;
        //状态 -1表示全部 1排队中 2收益中 3重新排队 4已结束
        public int status;
        public int canUpdate; //1 can,0 not

        public String getStatusStr() {
            String str = "";
            switch (status) {
                case -1:
                    str = "全部";
                    break;
                case 1:
                    str = "排队中";
                    break;
                case 2:
                    str = "收益中";
                    break;
                case 3:
                    str = "重新排队";
                    break;
                case 4:
                    str = "已结束";
                    break;
                case 5:
                    str = "已提取";
                    break;
                case 6:
                    str = "已取消";
                    break;
            }
            return str;
        }

        public String getRetBalance() {
            return retBalance;
        }

        public void setRetBalance(String retBalance) {
            this.retBalance = retBalance;
        }

        public long getCancelTime() {
            return cancelTime;
        }

        public void setCancelTime(long cancelTime) {
            this.cancelTime = cancelTime;
        }

        public int getOrderType() {
            return orderType;
        }

        public void setOrderType(int orderType) {
            this.orderType = orderType;
        }

        public double getRetPrice() {
            return retPrice;
        }

        public void setRetPrice(double retPrice) {
            this.retPrice = retPrice;
        }

        public long getAddTime() {
            return addTime;
        }

        public void setAddTime(long addTime) {
            this.addTime = addTime;
        }

        public String getTotalRetBalance() {
            return totalRetBalance;
        }

        public void setTotalRetBalance(String totalRetBalance) {
            this.totalRetBalance = totalRetBalance;
        }

        public String getFee() {
            return fee;
        }

        public void setFee(String fee) {
            this.fee = fee;
        }

        public int getCanRelease() {
            return canRelease;
        }

        public void setCanRelease(int canRelease) {
            this.canRelease = canRelease;
        }

        public String getAddTimeStr() {
            return addTimeStr;
        }

        public void setAddTimeStr(String addTimeStr) {
            this.addTimeStr = addTimeStr;
        }

        public long getIncomeTime() {
            return incomeTime;
        }

        public void setIncomeTime(long incomeTime) {
            this.incomeTime = incomeTime;
        }

        public long getTimeStamp() {
            return timeStamp;
        }

        public void setTimeStamp(long timeStamp) {
            this.timeStamp = timeStamp;
        }

        public String getRusdBalance() {
            return rusdBalance;
        }

        public void setRusdBalance(String rusdBalance) {
            this.rusdBalance = rusdBalance;
        }

        public int getExpireStatus() {
            return expireStatus;
        }

        public void setExpireStatus(int expireStatus) {
            this.expireStatus = expireStatus;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getWalletAddress() {
            return walletAddress;
        }

        public void setWalletAddress(String walletAddress) {
            this.walletAddress = walletAddress;
        }

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public long getExtractTime() {
            return extractTime;
        }

        public void setExtractTime(long extractTime) {
            this.extractTime = extractTime;
        }

        public long getExpireTime() {
            return expireTime;
        }

        public void setExpireTime(long expireTime) {
            this.expireTime = expireTime;
        }
    }
}
